package com.eastfair.home.api;

import com.eastfair.core.base.R;
import com.eastfair.home.dto.DrawingDTO;
import com.eastfair.home.dto.DrawingPageQuery;
import com.eastfair.home.vo.DrawingVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


@FeignClient(value = "home/drawing")
public interface DrawingFeign {


    /**
     * 图纸列表
     *
     * @param drawingDTO the drawing page query
     * @return drawing list
     */
    @PostMapping("/getDrawingList")
    R<List<DrawingVO>> getDrawingList(@RequestBody DrawingDTO drawingDTO);

    /**
     * 查询图纸列表为搭建商报馆.
     *
     * @param drawingDTO the drawing dto
     * @return the r
     */
    @PostMapping("/reportSpace/query")
    R<List<DrawingVO>> queryForReportSpace(@RequestBody DrawingDTO drawingDTO);
}
